@import './custom.less';

@header: header;

.@{header} {
  height: 64px;
  width: 100%;
  z-index: 970;
  box-shadow: 0 5px 8px fade(#000, 15);
  background: #3497DA;
  box-shadow: 0px 1px 3px 0px #CCCCCC;
  position: fixed;
  z-index: 19;
  top: 0;
  left: 0;
  &-logo {
    float: left;
    margin-top: 15px;
    margin-left: 30px;
    height: 33px;
    line-height: 33px;
    color: #FFF;
    font-size: 16px;
    & img {
      vertical-align: top;
      margin-right: 16px;
    }
    & a {
      display: block;
    }
  }
  &-nav {
    display: inline-block;
    line-height: 64px;
    margin-left: 60px;
    & .ant-menu-horizontal {
      border-bottom-color: transparent;
    }
    .plot{
        display: inline-block;
        width: 1px;
        height: 22px;
        border-radius: 1px;
        margin-left: 20px;
        margin-right: 20px;
        margin-top: 20px;
        opacity: 0.4;
        background: #686868;
    }
    .more{
      font-size: 14px;
      color: #FFF;
      cursor: pointer;
      i{
        margin-left: 19px;
      }
    }
    & li {
      float: left;
      text-align: center;
      cursor: pointer;
      & .header-nav-img{
          width: 64px;
          height: 64px;
          background-size: 22px 22px;
          box-sizing: border-box;
          background-repeat: no-repeat;
          background-position:50% 30%;
          span{
              display: inline-block;
              margin-top: 15px;
              color: #FFF;
              font-size: 14px;
              height: 14px;
          }
      }
      &:hover .header-nav-img{
        background-color: #FFF;
      }
      & .header-nav-img1{
          background-image: url("../../assets/menu1.png");
      }
      & .header-nav-img2{
          background-image: url("../../assets/menu2.png");
      }
      & .header-nav-img3{
          background-image: url("../../assets/menu3.png");
      }
      & .header-nav-img4{
          background-image: url("../../assets/menu4.png");
      }
      & .header-nav-img5{
          background-image: url("../../assets/menu5.png");
      }
      & .header-nav-img6{
          background-image: url("../../assets/menu6.png");
      }
      & .header-nav-img7{
          background-image: url("../../assets/menu7.png");
      }
      & .linkActive .header-nav-click{
          background-color: #FFF;
          border-bottom: 2px solid #FF8700;
      }
      &:hover .header-nav-img1,& .linkActive .header-nav-click.header-nav-img1{
          background-image: url("../../assets/menu1-active.png");
      }
      &:hover .header-nav-img2,& .linkActive .header-nav-click.header-nav-img2{
          background-image: url("../../assets/menu2-active.png");
      }
      &:hover .header-nav-img3,& .linkActive .header-nav-click.header-nav-img3{
          background-image: url("../../assets/menu3-active.png");
      }
      &:hover .header-nav-img4,& .linkActive .header-nav-click.header-nav-img4{
          background-image: url("../../assets/menu4-active.png");
      }
      &:hover .header-nav-img5,& .linkActive .header-nav-click.header-nav-img5{
          background-image: url("../../assets/menu5-active.png");
      }
      &:hover .header-nav-img6,& .linkActive .header-nav-click.header-nav-img6{
          background-image: url("../../assets/menu6-active.png");
      }
      &:hover .header-nav-img7,& .linkActive .header-nav-click.header-nav-img7{
          background-image: url("../../assets/menu7-active.png");
      }

      &:hover .header-nav-img span,& .linkActive span{
          color: #2C97DE;
      }

    }
  }
  &-nav-more{
    color:#FFF;
    cursor: pointer;
  }
  &-user {
    float: right;
    line-height: 62px;
    height: 64px;
    & .help {
      width: 100px;
      text-align: center;
      font-size: 22px;
      border-left: 1px solid fade(@line-color, 5);
      & .anticon {
        vertical-align: middle;
      }
      & span {
        display: inline-block;
        margin-left: 10px;
        font-size: 12px;
        line-height: 22px;
      }
    }
    & .user {
      font-size: 14px;
      text-align: right;
      width: 100px;
      border-left: 1px solid fade(@line-color, 5);
      & .img {
        margin-left: 0;
        & img {
          vertical-align: middle;
        }
      }
      & span {
        display: inline-block;
        margin-left: 10px;
        font-size: 12px;
        line-height: 24px;
      }
    }
    & a {
      display: inline-block;
      color: #FFF;
    }
    & a:hover {
      color: @primary-color;
    }
  }
}
